//
//  ZJPFViewController.m
//  GongXinDangJian
//
//  Created by ZJ on 2017/12/8.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "ZJPFViewController.h"
@interface ZJPFViewController ()
/** imageView */
@property (nonatomic, strong) UIImageView *imageView;
@end

@implementation ZJPFViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titlelabel.text = @"交纳党费";
    [self.view addSubview:self.imageView];
}

- (void)action_tapGester{
    //未安装app
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/cn/app/%E5%92%8C%E5%8C%85%E6%94%AF%E4%BB%98-%E5%92%8C%E5%8C%85%E5%AE%98%E6%96%B9%E5%AE%A2%E6%88%B7%E7%AB%AF/id597795676?mt=8"] options:@{} completionHandler:^(BOOL success) {
        
    }];
    
    
}

- (UIImageView *)imageView{
    if (_imageView == nil){
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, navHeight, self.view.width, self.view.height - navHeight)];
        _imageView.contentMode = UIViewContentModeScaleAspectFit;
        _imageView.userInteractionEnabled = YES;
        _imageView.image = [UIImage imageNamed:@"payDues_download"];
        UITapGestureRecognizer *tapGester = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(action_tapGester)];
        [_imageView addGestureRecognizer:tapGester];
    }
    return _imageView;
}

@end

